package com.example.aoptest1.controller;

import com.example.aoptest1.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HomeController {

    @Autowired
    UserService userService;

    @GetMapping(value = "index")
    public String index()
    {
        userService.funA();
        return "index";
    }
}
